package com.qzboot.facade.entity;

import com.qzboot.facade.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author zengzhihong
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysMenu extends BaseEntity {

    @NotNull(message = "上级ID不能为空")
    private Long parentId;

    @NotNull(message = "名称不能为空")
    private String menuName;

    @NotNull(message = "类型不能为空")
    private Integer menuType;

    private String path;

    private String icon;

    private String perms;

    private Integer hideFlag;

    private Integer sortNum;
}
